package ooday02work;

public class Teacher extends Person {
    double salary ;
    Teacher(String name ,int age ,String address , double salary){
        super(name, age, address);
        this.salary = salary;
    }
    void teach(){
        System.out.println(age+ "岁的"+name +"在教课");
    }
    void eat(){
        System.out.println(name+"看着发的工资"+salary+"元，在吃饭...");
    }
    void sleep(){
        System.out.println(name +"在"+address+"睡觉");
    }
}
